package pers.muci.flowable.step1;

import org.flowable.engine.delegate.DelegateExecution;
import org.flowable.engine.delegate.JavaDelegate;

/**
 * ClassName: CallExternalSystemDelegate
 * Description:
 * date: 2022/1/13 10:06
 *
 * @author muci
 * @since JDK 1.8
 */
public class CallExternalSystemDelegate implements JavaDelegate {
    /**
     * 该方法自动执行，此处只作为日志记录
     *
     * @param execution
     */
    @Override
    public void execute(DelegateExecution execution) {
        System.out.println("Calling the external system for employee "
                + execution.getVariable("employee"));
    }
}
